package com.geekaca.d05;

import java.util.Stack;

public class HelloStack {
    public static void main(String[] args) {
        /**
         * 栈结构的类
         */
        Stack<String > stack = new Stack();
        stack.push("tom");
        stack.push("jack");
        stack.push("Jerry");

        System.out.println(stack);

        String pop = stack.pop();
        System.out.println(pop);

    }
}
